/**
 * Created by .
 * User: Jefferton
 * Date: 5/19/11
 * Time: 10:56 AM
 * To change this template use File | Settings | File Templates.
 */
function search_submit() {
    var query = $("#id_query").val();
    $("#search-results").load(
            "/search/?ajax&query=" + encodeURIComponent(query)
    );
    return false;
}

$(document).ready(function () {
    $("#search-form").submit(search_submit);
});